import request from '@/utils/request'

// 查询短视频广告列表
export function listShort(query) {
  return request({
    url: '/advertising/short/list',
    method: 'get',
    params: query
  })
}

// 查询短视频广告详细
export function getShort(id) {
  return request({
    url: '/advertising/short/' + id,
    method: 'get'
  })
}

// 新增短视频广告
export function addShort(data) {
  return request({
    url: '/advertising/short',
    method: 'post',
    data: data
  })
}

// 修改短视频广告
export function updateShort(data) {
  return request({
    url: '/advertising/short',
    method: 'put',
    data: data
  })
}

// 删除短视频广告
export function delShort(id) {
  return request({
    url: '/advertising/short/' + id,
    method: 'delete'
  })
}
